package com.auto.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * Description: api自定义分类信息
 * @author liangshf
 * @date 2019-07-16
 */
public class ApiCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类目ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	
    /**
     * 类目编码
     */
	private String code;
	
    /**
     * 类目名称
     */
	private String name;
	
    /**
     * 父类目ID, 第一级类目的父类型为0
     */
	private Long pid;
	
    /**
     * 所有父级类目ID, 该类目为第一级类目时0, 多级用,分隔并以逗号结尾,如：0,5,
     */
	private String parentIds;
	
    /**
     * 是否叶子类目: 0-否;1-是
     */
	private Integer leaf;
	
    /**
     * 级别
     */
	private Integer level;
	
    /**
     * 前台是否可展示: 0-否;1-是
     */
	private Integer showable;
	
    /**
     * 状态，1-启用，2-停用
     */
	private Integer status;

	/**
	 * 状态，1-启用，2-停用
	 */
	private Integer type;
	
    /**
     * 排序
     */
	private Integer sort;
	
    /**
     * 删除标志, 0-未删除,1-已删除
     */
	private Integer del;
	
    /**
     * 创建人id
     */
	private Long createdBy;
	
    /**
     * 创建时间
     */
	private LocalDateTime createdTime;
	
    /**
     * 更新人id
     */
	private Long updatedBy;
	
    /**
     * 更新时间
     */
	private LocalDateTime updatedTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public Integer getLeaf() {
		return leaf;
	}

	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getShowable() {
		return showable;
	}

	public void setShowable(Integer showable) {
		this.showable = showable;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public Long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}

	public LocalDateTime getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	public Long getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(Long updatedBy) {
		this.updatedBy = updatedBy;
	}

	public LocalDateTime getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(LocalDateTime updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "ApiCategory{" +
			", id=" + id +
			", code=" + code +
			", name=" + name +
			", pid=" + pid +
			", parentIds=" + parentIds +
			", leaf=" + leaf +
			", level=" + level +
			", showable=" + showable +
			", status=" + status +
			", sort=" + sort +
			", del=" + del +
			", createdBy=" + createdBy +
			", createdTime=" + createdTime +
			", updatedBy=" + updatedBy +
			", updatedTime=" + updatedTime +
			"}";
	}
}
